package com.sie.plm.rpm.standar.vo;

import java.util.Set;

public class RoleMemberDTOS {
    private String code;

    public void setCode(String code) {
        this.code = code;
    }

    private Set<MemberDTO> memberDTOS;

    public void setMemberDTOS(Set<MemberDTO> memberDTOS) {
        this.memberDTOS = memberDTOS;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof RoleMemberDTOS)) {
            return false;
        }
        RoleMemberDTOS other = (RoleMemberDTOS) o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$code = getCode(), other$code = other.getCode();
        if ((this$code == null) ? (other$code != null) : !this$code.equals(other$code)) return false;
        Object this$memberDTOS =  getMemberDTOS(), other$memberDTOS = other.getMemberDTOS();
        return !((this$memberDTOS == null) ? (other$memberDTOS != null) : !this$memberDTOS.equals(other$memberDTOS));
    }

    protected boolean canEqual(Object other) {
        return other instanceof RoleMemberDTOS;
    }

    public int hashCode() {
        int PRIME = 59,
        result = 1;
        Object $code = getCode();
        result = result * 59 + (($code == null) ? 43 : $code.hashCode());
        Object $memberDTOS = getMemberDTOS();
        return result * 59 + (($memberDTOS == null) ? 43 : $memberDTOS.hashCode());
    }

    public String toString() {
        return "RoleMemberDTOS(code=" + getCode() + ", memberDTOS=" + getMemberDTOS() + ")";
    }


    public String getCode() {
        return this.code;
    }


    public Set<MemberDTO> getMemberDTOS() {
        return this.memberDTOS;
    }
}
